

Route::group(function () {
    //抽奖
        Route::get("/prize_index", "app\admin\controller\Prize@prize_list")->name("prize.index");// 列表
        Route::get("/prize_code_list", "app\admin\controller\Prize@prize_code_list")->name("prize.prize_code_list");// 虚拟卡券列表
        Route::post("/prize_code_import", "app\admin\controller\Prize@prize_code_import")->name("prize.prize_code_import");// 虚拟卡券导入
        Route::get("/prize_log", "app\admin\controller\Prize@prize_log")->name("prize.prize_log");// 中奖记录
        Route::post("/prize_log_export", "app\admin\controller\Prize@prize_log_export")->name("prize.log_export");// 中奖记录
        Route::get("/prize_detail", "app\admin\controller\Prize@detail")->name("prize.detail");// 详情
        Route::post("/prize_delete", "app\admin\controller\Prize@delete")->name("prize.delete");// 删除
        Route::post("/prize_create", "app\admin\controller\Prize@create")->name("prize.create");// 创建  
        Route::post("/prize_add_stock", "app\admin\controller\Prize@add_stock")->name("prize.add_stock");// 添加库存
        Route::post("/prize_edit", "app\admin\controller\Prize@edit")->name("prize.edit");// 编辑
    })
->allowCrossDomain()// 跨域
->middleware(middleware\Auth::class)// jwt认证
->middleware(middleware\Permission::class);// 权限认证

Route::group(function () {
    //抽奖
        Route::get("/prize_log_export", "app\admin\controller\Prize@prize_log_export")->name("prize.log_export");// 中奖记录导出
    })